package net.sx.minemodule.mvp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

import net.sx.minemodule.mvp.item.TestPackageInfoItem;

/**
 * @author 11470
 */
public class PackageInfoBean extends BaseModel<TestPackageInfoItem> implements Parcelable{

    private String type;
    private String money;
    private String balance;
    private String date;

    @Override
    public TestPackageInfoItem createItem(MultiTypeAdapter adapter) {
        return new TestPackageInfoItem(this);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.type);
        dest.writeString(this.money);
        dest.writeString(this.balance);
        dest.writeString(this.date);
    }

    public PackageInfoBean() {
    }

    protected PackageInfoBean(Parcel in) {
        this.type = in.readString();
        this.money = in.readString();
        this.balance = in.readString();
        this.date = in.readString();
    }

    public static final Creator<PackageInfoBean> CREATOR = new Creator<PackageInfoBean>() {
        @Override
        public PackageInfoBean createFromParcel(Parcel source) {
            return new PackageInfoBean(source);
        }

        @Override
        public PackageInfoBean[] newArray(int size) {
            return new PackageInfoBean[size];
        }
    };
}
